package ie.lawlor.amvc.controller;

import ie.lawlor.amvc.event.EventName;

import java.util.List;



public class EmitToTriadsEvent extends ControllerEventWrapper{
	
	protected List destinations;
	public EmitToTriadsEvent() {
		super();
	}
	public EmitToTriadsEvent(EventName componentEvent, EventName applicationEvent){
		super(componentEvent, applicationEvent);
	}
	public void addToController(Controller controller){
		controller.emitToTriads(componentEvent, 
				applicationEvent,
				destinations,
        override);
  }

  public List getTriads() {
		return destinations;
	}

  public void setTriads(List triads) {
    this.destinations = triads;
  }
}